package com.bjbn.service.impl;

import com.bjbn.bean.entity.BaseAirport;
import com.bjbn.mapper.primary.BaseAirportMapper;
import com.bjbn.service.AirportService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Slf4j
public class AirportServiceImpl implements AirportService {

    @Autowired
    private BaseAirportMapper  baseAirportMapper;

    @Override
    @Transactional(transactionManager = "primaryTransactionManager")
    public List<BaseAirport> getAllAirport() {
        return baseAirportMapper.selectList(null);
    }


}
